﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace store.Areas.Admin.Models
{
    public class CreateCategoryModel
    {
        [Required]
        [StringLength(100, MinimumLength = 2)]
        public string Name { get; set; }
        public int CategoryID { get; set; }
        public int ParentID { get; set; }
        public string Description { get; set; }
        public Nullable<int> Number { get; set; }
        public bool Active { get; set; }
        public Nullable<System.DateTime> ModifiedDate { get; set; }
        public string OptionSubmit { get; set; }
    }

    public class EditCategoryModel
    {
        [Required]
        [StringLength(100, MinimumLength = 2)]
        public string Name { get; set; }
        public int CategoryID { get; set; }
        public int ParentID { get; set; }
        public string Description { get; set; }
        public Nullable<int> Number { get; set; }
        public bool Active { get; set; }
        public Nullable<System.DateTime> ModifiedDate { get; set; }
        public string OptionSubmit { get; set; }
    }

}